package com.example.smsplatformapigateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Set;

/*
杨威
2022/2/13
17:56
*/
@FeignClient(value = "smsplatform-cache")
@RequestMapping("/cache")
public interface CacheService {
    @RequestMapping(value = "/get/{key}", method = RequestMethod.GET)
    String get(@PathVariable("key") String key);
    @RequestMapping(value = "/getobject/{key}", method = RequestMethod.GET)
    Object getObject(@PathVariable("key") String key);
    @RequestMapping(value = "/members/{key}",method=RequestMethod.GET)
    public Set<String> members(@PathVariable String key);
}
